x86-64/EFI: discard .comment.* sections
authorJan Beulich <jbeulich@novell.com>
Fri, 8 Jul 2011 12:23:05 +0000 (13:23 +0100)
committerJan Beulich <jbeulich@novell.com>
Fri, 8 Jul 2011 12:23:05 +0000 (13:23 +0100)
The SuSE version of gcc produces a non-standard section named
.comment.SUSE.OPTs, but the PE32+ handling in binutils can't really
deal with any section to be placed at virtual address zero (and not
needing to be loaded). Even if binutils did, at least the UEFI
implementation in EDK 1.06 doesn't look at the section characteristics
at all, and hence would attempt to load such a section, and fail or
corrupt other data.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/xen.lds.S

index 7679202d5032125e68791eb8b5b449c2ff74f7cc..08e7fa027377e01d5eaafc7958df979d4b1f00ab 100644 (file)
@@ -163,6 +163,7 @@ SECTIONS
        *(.eh_frame)
 #ifdef EFI
        *(.comment)
+       *(.comment.*)
 #endif
   }